Ext.define('OrderConvert.view.convert.ConvertGridModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.convert-convertgrid',
    data: {
        name: 'OrderConvert'
    },


    stores : {
        convertStore : {
            fields : [
                "id","name","createBy","createTime","modifyBy","modifyTime","dep","data","apiUrl"
            ],

            proxy: {
                type: 'ajax',
                url: OrderConvertUrl.constant.serverUrl + 'rule/list',
                reader: {
                    totalProperty:"totalRow",
                    type: 'json',
                    rootProperty: 'list'
                }
            },
            autoLoad: true
        }
    }

});
